package com.situ.onlinebookstore.back.service;


import com.github.pagehelper.PageInfo;
import com.situ.onlinebookstore.common.entity.Admin;

import java.util.List;

public interface AdminService {
    //管理员登录
    Admin login(Admin admin) throws Exception;

    //自动登录
    Admin autoLogin(Admin admin);

    //查询所有符合条件的
    List search(Admin admin);

    //分页查询
    PageInfo searchForPage(Integer page, Integer limit, Admin admin);

    //编辑
    int edit(Admin admin) throws Exception;

    //创建账号
    int add(Admin admin) throws Exception;

    int resetPwd(String oldPwd, String newPwd, Integer id) throws Exception;
}
